Restructure from array to lists--have not tested