Hash Funtions defined. Not working