Added support for mutiple messages at once.