Updated report command to return a string from helper functions.