Changed tuples to frozensets