Changed signature of get_changes so dirty fields can be passed in.