Added an optional input for seed