Added a way for tasks to have cooldowns.