Encryption directory tree check is now in a separate function.