New function for extracting list parameters from paramfile