Update code to enforce the Singleton pattern.