Renamed 'protocol' to 'type'.