Wait for idle