Change result callback as "function(err, result)".