Corrected user tasks when custom ports are defined