Revert two different hash_sequence(_head)'s to one variable, use HF_SEQUENCE_DISTANCE in both places