Updated the Calc method.