Add diffs for functions