added seeding functionality.