Improve list creation, fix issue with pointer to list