Moved buffer sending to separate class. (#175)