End of main migration