1> Updated to accept scanNum as an input.
2> Updated to make use of new getUniformScanXYZVals function.