Added folder protection.