Added missed mean subtraction (what a shame)