I think we should do the calculation inside of the update method. Just pass the necessary parameters in.