Added a singleton constructor.