Added setConfig and nextItems