Work on the migration procedure