Added layer clipping.