Collecting targets in input specification code