Updated the get_variables() function to link to the appropriate
 primitives.