Made listmaker() dynamic