Tweak to use new targets() API.