1. A method, performed by a wireless device, for managing a set of resources for transmission of data to a further wireless device using Device-to-Device (D2D) communication, wherein the wireless device and the further wireless device are configured for operation in a mixed cellular and D2D radio network, wherein the set of resources are comprised in a cellular spectrum of the mixed cellular and D2D radio network, wherein the set of resources comprises a first group of resources and a second group of resources, and wherein the method comprises:determining that the first group of resources is less occupied compared to the second group of resources by detecting energy at the first and second groups of resources;
selecting, from among the set of resources, a subset of resources for the transmission of data according to a hopping algorithm for distribution of the subset of resources among the set of resources, wherein the selecting of the subset of resources comprises selecting the subset of resources from among the first group of resources, according to the hopping algorithm;
sending a scheduling command to the further wireless device, wherein the scheduling command indicates the selected subset of resources according to a scrambling code used for the scheduling command, wherein a mapping from the scrambling code to the hopping algorithm enables the further wireless device to identify the selected subset of resources; and
sending the data to the further wireless device on the selected subset of resources using the D2D communication.