Implemented file locking system.