Added variation value function to model