Implemented adding port into the rectangle based components.