Added path clipping