Finish tasks.