Update port adding logic
Update Generated c