Added lock command