Improve method 'AddTargets'.