Changed data generation + formatting in functions_migration.