Added routine to find mean and standard deviation