Changed std calculation strategy