No need to sleep if the flag is not set