Hash Function updated