Add supplimentary IO stream checks

Added supplimentary IO stream checks
Please indent this line by 1 tab.