Frankensteined two pieces of code together and running (hopefully) for 10 hours overnight.