Added save and load implementation.