Now allows locking and unlocking from the command line.