Fixed singleton instance() method that always returned a new instance.