Removing unnecessary references and formatting the output to a pleasing way.