Added on_message_send hook