Add support for specifying a seed.