Added prelim. support to set the seed