Used InputStream instead of BufferedReader