Replace paramList function with list comprehension