Working multi threaded, breaking up transactions into groups