added Pilot Logic