Adding basic new message functionality.
Back-merge.