In July 2013 OKO released the BeamDoctor system for the beam quality optimisation. The system is based on the BeamTuner software and can include any OKO deformable mirror. Using only the focal spot image, the software automatically, in a number of iterations, optimizes the control signals to the the deformable mirror, to compensate for the static aberration. The BeamTuner includes: The BeamTuner software, a deformable mirror with appropriate computer interface and drivers, and inexpensive CMOS or CCD camera for the focal spot sensor. The system also can be used to compensate aberrations of imaging systems, using real-time image sharpness as the optimization metric.