Using ports to clean up syntax