Added dynamic delay for threads starting (needs to be improved)