Finish generating models