Add dumpToConsole to compliment dumpToFile