Implemented enhancement to skipRepeats.

As a response to issue #1567. I've implemented both the hot and cold versions.