Fixed an issue where data from System.in was being read in that should have been ignored.