Implement derivatives hook.
Merge pull request #48 from adam-vessey/7.x-derivatives

Implement derivatives hook.