Add method 'getTargets'.