Sample code to run Pilot