Added some protection to prevent removing or adding items to the lock