Added a more thorough preflight routine.