Use while(true) to read console input