Example images and analysis code to support the development and publication of a smart stack procedure to use closed loop movements in an autofocus procedure. Includes examples on how images can be processed and tiled, analysed to find the focal plane, and stacks tested to find the distribution of sharpest images within stacks across a large scan or collection of scans.