Add lock command