Switch to take ports in via flags