Slight performance optimisation as recommended by Peter Empen.