Fixed sample offset to actually work