Switched to size_t, added dumploop