process_targets function

Construct and Check Targets Input