Fixed text wrap, encapsulated more port manipulation.