Changed the way colour codes are fetched.