Properly void out inputFile when switching modes