Added method to get port