Code to generate interactions between specified variables.