Finish implement of Main