Implement message writer.

Nice.