It works perfectly. For some reason I am having issues calling it in an existing module I have but I will be able to figure it out as soon as I down some more coffee.
Stand alone it works for exactly what I need. Thank you for the help and the learning experience.