Add ports to magic