Improved the task manager.