Re work the execution sequence