Sample code for external program w/ EAP?