Finally completed but not fully tested this revertHashAtRange procedure.