@hdsingh, the current random color selection currently employed does not work well for small numbers of colors in the color map. Several times I've got the same color twice in a row, which is bad!
Instead, we should cycle through the small number of colors in order.