Added functionality for a task scheduler