Add log dump and load functions