Modify get_changed to accept variable other than @task as optional argument