Start writing the update functions