Add function to access response data