Add MessageHandler class for recording private message history