Updated Tools usage in to_obj()