Removed unnecessary copy in colouring functions.