Added a lock