Added initial code for task manager.