converted the Add/RemoveAction statements to the Vars parameters