Refactor out send buffer