Replace transaction<> with work.