Changed hashing function to distribute load more evenly