Making sure results are consistent between MAC OSX and Linux