Updated birrt_to_goal method.