Added writing new message features.