Initial version.
Reads all input data.