Fix so that parameter generating functions work with @parallel.