Finished the output formatting