Added support for clipping.