Functions added to task controller to separate the tasks with different priorities.