Added input from file mode.