Started refactoring the import alignment script.