Make setTimeout a dependency injection.