Removed hash and used hashlib