Working out a nasty bug I introduced with the hash chain.