Added the ability to specify maximum amount of entries to display. Feature request #7291.