Fixed bug in missing closing bracket, added optimizeLegibility