Add saving and loading of logs