First step of migration