Fixed use of deprecated port method