Added a base parameter to the interaction_case_hash function