I see four blocks of code that are almost the same (except for the delayedtime part in the last block). It could be factorize in some way, so you only have a function that invoke 4 times to create the servers?