Change hook to make create_task pass