Added some logic for stdDeviation and difference