I have a sample with significant topography that I am scanning using the OFM software. I have been trying to modify the autofocus extension to be better at autofocussing on such a sample but I am having trouble. As I understand, in the standard autofocus initially the focus moves up (or down?) a certain amount then the z axis is moved in increments of 10/30/100 steps depending whether coarse/medium/fine is chosen. I am trying to find a way to modify the amount of steps the initial movement is & subsequently how many steps (as in increments) the autofocus performs back down before deciding which image is sharpest. I have looked at the extension code but can’t figure out how to alter these parameters. Any help would be appreciated!