Another patch against this code (the right one now) to deal with cyclic ranges....