Edits to pilot and run_pilot