All the steps except the task and flush