Changed add_codes_to_var to add_codes_to_column