Added stats collection and list extraction functions in the item pipeline