Add ports configuration and performance tweaks