Make SharedState a singleton