Change the long to long long
Dump the file when the client is ready
Resolve a bug in the dump