Dump to file and replay tool