Preflight checks and some maintainance