I can add port and their direction to xml.