Removed extra comments and private hash function.