Implemented clipping