Added control logic for flight stages