Finish the main