Added message id return to batch sending.