Adding erosion and allowing a scale factor on the noise function