Port center position calculation, as well as index calculation changed