Added some calculations for confidence levels