Increased and refined sleep in main loop