Small change to communication input stream code