Made colour generation nicer.