REP-28: Changed how we get input streams.