Changed calculation for lambda