Added a singleton pattern.