Almost got the saveList() function working like it should