Improve long-running migration so it can pickup where it left off.