Added optimization flag
Removed unneeded template from to_string