I'd put the:

    seedNodeProccess = if (...) else if (...) etc