Added hash calculating