Add support for several diff functions