Time to look at some existing code...
Still working at it…
Although I did find out one thing I was doing wrong.