Simplifiy cookie code and make captain colors consistent.