Added a control for the locking delay