Finish migration to tempalte and advance.