Updated to deal with response data.