Added support for random parameters.