Lock working