Replaced to lastItemId