Added memory dumper
Defaults to 1
Refactoring, more needed...