Added optimizeLegibility