Made some changing to help improve timing

The record/stop does not function properly all the time on all tested
PC. Made time changes to the order of instructions to see if it helps.