Add RunInTransaction method.