Added switch to specify a seed