Make the safety checks in a logical order