Add err, resp to existing callback functions