Added newestMessage and nextMessageId