Implement managed transactions