Added add_goal and tests.