Added support for a custom amount of items using argument maxItems=xx