Corrected the missing calculations.