Update callback(resp) to callback(err, data)