Added preflight on/off switch.