MakeList function moved to lib