Fixed calculations.