Added subgoals.