Added the standard deviation calculation