First draft at migration routine.