Implement sample offset and end commands