Quickfix: filters out values that are zero. Doesn't yet filter values that are too close.