Locking functionality working.