A helper class to manage setInterval tasks.