Added reading input data from file implementation.