Added external_port option