Improve index clash detection.

Improve logging.