Add option to set a seed