Passing response object to callback