Changes main goal from json path to generic tree selector.