Added bit to compute colormode based on keys present.