Pass the response object as parameter in callback