Finished createUpdatedGoal. Needs to be tested.