Updated lock generator