Do not call sleep() in the code using AnyEvent!