Added Singleton lock system.