Update port index method
Merge pull request #1 from jjmartres/master

Update port index method