Added hash fun option.