Changed implementation for updateWorkout