BUGFIX: ITEMCOUNT_MAX should be 9999.