Added function to return range of targets