Turn max messages count into private constant