A first network function comprising means for: receiving a request from a second network function including information relating to the second network function, wherein the request from the second network function is a request to discover at least one proxy function, and the information relating to the second network function comprises at least one of a type of the second network function, a locality of the second network function, an identity of the second network function and a network slice of the second network function; receiving a registration request from at least one proxy function comprising at least part of information relating to the at least one proxy function; storing the information relating to the at least one proxy function; determining, based on the information relating to the second network function, at least one proxy function; in response to the request received from the second network function, providing to the second network function the stored information relating to the at least one determined proxy function, wherein the proxy function comprises a service communication proxy, SCP; wherein the information relating to the proxy function comprises at least responsibility of the SCP, wherein the responsibility of the SCP comprises at least one of Service names of services of network functions, NFs, served by the SCP, Served Location(s), service scope(s), locality/ies, Remote public land mobile network, PLMN, and/or non-public network identifiers, single - network slice selection assistance information, S-NSSAI(s), and/or network slice instance, NSI, lists of the NFs, NF types, Domains, NF sets served by the SCP, information about other SCPs and/or security edge protection proxies, SEPPs, reachable via the SCP, information whether the SCP is the serving SCP of the second network function, and wherein the responsibility of the SCP depends on the location of the second network function, and wherein the first network function comprises means for: storing different responsibility information for the SCP for different locations. receiving a request from a second network function including information relating to the second network function, wherein the request from the second network function is a request to discover at least one proxy function, and the information relating to the second network function comprises at least one of a type of the second network function, a locality of the second network function, an identity of the second network function and a network slice of the second network function; receiving a registration request from at least one proxy function comprising at least part of information relating to the at least one proxy function; storing the information relating to the at least one proxy function; determining, based on the information relating to the second network function, at least one proxy function; in response to the request received from the second network function, providing to the second network function the stored information relating to the at least one determined proxy function, wherein the proxy function comprises a service communication proxy, SCP; wherein the information relating to the proxy function comprises at least responsibility of the SCP, wherein the responsibility of the SCP comprises at least one of Service names of services of network functions, NFs, served by the SCP, Served Location(s), service scope(s), locality/ies, Remote public land mobile network, PLMN, and/or non-public network identifiers, single - network slice selection assistance information, S-NSSAI(s), and/or network slice instance, NSI, lists of the NFs, NF types, Domains, NF sets served by the SCP, information about other SCPs and/or security edge protection proxies, SEPPs, reachable via the SCP, information whether the SCP is the serving SCP of the second network function, and wherein the responsibility of the SCP depends on the location of the second network function, and wherein the first network function comprises means for: storing different responsibility information for the SCP for different locations.