Limit the size of chat to 5000.