Added multi-message and random message selection support.