Changed the union method.