Added support for flat datastructures, where the data is identified on through the li iteself