Added port identification code