Added dumpToLog