Pass response object as argument to callback