Changed return name to add_to_output