Logic updates. Added obfuscation of flag scripts.