Finish main