Slight changes to mode protocol.
Factor color generation into util ns.