Moved settingof ports to spimodel