Moving generateList to Winfuncs