Reworked fetchItemsInfo to take layoutInfo as an argument