Add function for streamed responses