Update migration.R