Update to add a couple of convienience functions. NOT pretty but it does exactly what I need without the use of external programs