Added a lock command