Moved calls to WriteToChannel; now calling directly as we have our string. Also, make sure result from snprintf is null terminated.