Added buffer wrap cases to communication send and write