Moved server config generation to own function, added --seed option.