Added clipping check.