Added basic functions to process subtasks