Added some hash stuff and made the hashes work