Added seed support (still needs revision!).