Added 'MessageDocument' functionality