Update to new ports API