Forgot to stage this file. Handling of close order checking implemented.