add_add_var function

Add additional variables to the data