Uh. Hashing is probably silly/pointless in this case (wrote that far too early in the morning...). Revised patch attached, just saves last region and uses string-equal.