Port vars changed to slice