Updating Hash Function