Fixed bug with formatting output.
Removed unused utility methods.