getTargets now returns Set