Sampling work. There are precision issues to consider here, especially if we want to ever think about making this work with floating point data.