Thank you very much! I was unsure on the convention for the signals and now that I see your post it makes a lot more sense why there were two variables required for that function.
After fiddling some more I was able to get the functionality required so thank you again!