Try to implement dump and restore