Optimized Hashing Method, it is a lot faster now.