To tell you the truth I'm not even really sure what `first` and `last` are supposed to represent. The sample number relative to zero? If so, I can make that fix.