Add notify constructor for messages.