Factored out the colour codes