Large refactor, made ordering of new domain names work.