Optimise allignment of the clipped layer and provide tests.