Reordering some code in the update script