Made the Singleton pattern into a metaclass.