Initial code for makederivatives(); not operational yet, but not blocking either.