Added the union function