I was able to do it using the info from this post.:
The code I used is there. Everything else I need can be done with regular nodes.