Modified to reduce the default gradient dx and delta factor