Turning on optimization flag