Added coarse highlighting and an option to include duplicates.