Adding lock commands