Moved setTargets into filter.