Changed PW hash function