Added functional of subtasks