Implement clipping