Added delta for storing the derivative matrix