First cut of migration script