Serializing the schemes history but it's not working right now (empty file).