Changed callbacks according to the standards, cb(error, value)