Almost working input data generation