Added Num, a compact representation for keys.