Added helper hash function.