Added message history support.