Added Hash logic