Improved the hashing algorithm a lot