Implemented clipping.