Apparently, previous problems have been solved. Just one problem related to the case in which the distance in the image 2 is below the step size is remaining