Generic Metamorphic/Substitution Engine