Added methods for storing global data persistently.