Minor colour change - using ref instead of duplicating value.