Moving Update Code Into Its Own File