getStDists dumps straight to file