Use two thread for migration