Changed the formatting of the output from the existing functions.