Added some non-interactive functions. Rewrote nonInteractiveAppendMessage.