Use stepper.single_step instead of stepper.step_relative in AFM methods.