Fixed an issue where data from System.in was being read in fully and as such removing it from the InputStream for future calls.