Selecting the lock mechanism