Derivative stuff working.  This submit is before cleaning it up and deleting checking code.