Bunch of hacking on a mapAccum that performs parallel work