Changed callback to err, res