Added missing port arguments to waitForService