Added support to read from multiple input streams simultaneously