Added set unions to all of code.