Enhacements to the migration library code.