“Lock” and “Unlock”, the Lock function