Delay code for closing motors started