Added AppendMessage and AppendErrorMessage