Switch to more generic InputStream class