Add routines for derivation