Add execution checks. So far the implementation dials the wrong derivative call.