I figured it out. I was approaching it all wrong. There was already an argument to pass to the function, so all I had to do was take advantage of the name in the set. Thanks for all the advice guys.
EDIT: Updated the above post to show the sets I used.