Added handling of obsolete similarities.