Adjusted to handle multiple instances and unlimited values.

Signed-off-by: Joe Whitsitt <joe-whitsitt@uiowa.edu>