Implemented data generation.