Refactor to pass message to append instead of string.