Added option to manually set seed.