Re-format monitor output and remove debugging output.