Scanner replaced with BufferedReader