Introduce support for trusted_networks parameter.