Adding callback for IO streaming.