Singleton constructor modified and its implementation