Optimised performance a little by using the union operator.