A working, tested version of retry transaction code!

God I'm old