Updated model_diff to use new function.