Made some changes to demo sending a buffer