Updated the light calculations.