Selecting the right lock.