See: Executing Logic in Replacements