Added some formatting in Snooper to allow unit testing