Work on InputStream