Fix 'run' function's use of port parameter.