Added hash check