Automatically Complete a Main Task after all Subtasks are Completed