Wait 1sec for the main loop