Document Locking now working.