Added a hashing option for backwards compatibility