Version 1.2: Set maxitems and add logging