Added commons IO for input stream