@WazzaJB
Worked a charm, added your code to my custom plugin class for this site. I have not tested it completely, only tested to see if it worked on the parent level so far. Will test the rest as I use it. But after reading the instructions that Elliot linked to and looking at your code I don’t see why it wouldn’t work.
Thanks a heap, saved me a boatload of time trying to figure it out on my own. Now I have an example to follow 🙂