Add skdiff function