A method, in a wireless device configured for operation in a wireless communication network and further configured for device-to-device communication with one or more other wireless devices, the method comprising: receiving, from a coordinating node, first and second application codes at a time, and associated timing information, the associated timing information defining respective first and second validity intervals for the first and second application codes, such that the first and second validity intervals are at least partly non-overlapping; and, subsequent to receiving the first and second application codes and associated timing information, transmitting, during the first validity interval, one or more discovery messages that include or are based on the first application code, and transmitting, during the second validity interval, one or more discovery messages that include or are based on the second application code, characterized in that the associated timing information defines completely non-overlapping first and second validity intervals or the first validity interval begins before the beginning of the second validity interval and ends before the end of the second validity interval and characterized in that the first and second validity intervals are defined such that the wireless device transmits discovery messages that include, or are based on, each of the first and second application codes during a transition phase in which the validity intervals for the two application codes overlap, the method further characterized in that it comprises, prior to receiving the first and second application codes and associated timing information, sending a first application code request to the coordinating node, via the wireless communication network, wherein the first and second application codes and associated timing information are received in response to the first application code request. receiving, from a coordinating node, first and second application codes at a time, and associated timing information, the associated timing information defining respective first and second validity intervals for the first and second application codes, such that the first and second validity intervals are at least partly non-overlapping; and, subsequent to receiving the first and second application codes and associated timing information, transmitting, during the first validity interval, one or more discovery messages that include or are based on the first application code, and transmitting, during the second validity interval, one or more discovery messages that include or are based on the second application code, characterized in that the associated timing information defines completely non-overlapping first and second validity intervals or the first validity interval begins before the beginning of the second validity interval and ends before the end of the second validity interval and characterized in that the first and second validity intervals are defined such that the wireless device transmits discovery messages that include, or are based on, each of the first and second application codes during a transition phase in which the validity intervals for the two application codes overlap, the method further characterized in that it comprises, prior to receiving the first and second application codes and associated timing information, sending a first application code request to the coordinating node, via the wireless communication network, wherein the first and second application codes and associated timing information are received in response to the first application code request.