Added code to deal with cases where there are more blobs than models in color codes.