Now calculates standard deviation.