Fix so that parameter generating functions work with @parallel.
Merge pull request #10 from nfoti/master

Fix so that parameter generating functions work with @parallel.