I don't know if anyone else will find this code useful but I had some spare time so decided to speed up this easy to automate task.