Fix erosion. Not yet complete.