Adding std deviations calculation.