Added new code for maintaining multiple text messages.