Made this sucker run globally. Fixed a little math so that the transactions add up and can actually be imported.