Beginning of hash implementation.