First pass implementation of unalignment script.