Add messages subject and message hook