Added some persistence functions. Not implemented.