Add option to stop iteration using return value
Logarithmic scale for gradient
Narf are optional