Switch buffer-based API to name instead of context.