Added dom_for method