Changed data generation function