Add an accidentally deleted add_var_param function