Added ErrorFun to der_connect