Read from file to produce training data. Add timestamp to check the order.