Added ToHash method