Initializing the messages array.