Added generate data method