runWithBuffer added.