Use Time::sleep instead of sleep in Application::main