Updated lock to freeze the values.