Initial implementation, read input file.