Configurable max message count