Added add <task> function