Text this: Beam-based correction and optimization for accelerators /