Cleaned a bit up and made srcPos mandatory for newPort.