Union function added