Making real progress on the erosion algorithm: