Moved obfuscation & deobfuscation in to separate functions