Added generic input stream