Added a method of calculation.