A user equipment, UE,, comprising: a memory storing instructions; and a controller configured to process the instructions to: support device to device communication; operate in two modes for resource allocation for the device to device communication, wherein the two modes include: scheduled resource allocation in which a network device schedules radio resources for device to device communication, wherein the UE sends a scheduling request to the network device and the network device schedules the radio resources for device to device communication; and autonomous resource selection in which the UE selects radio resources from a resource pool for device to device communication; receive, from the network device, a signalling including information for configuring a pool of radio resources, wherein the information indicates radio resources that the UE is allowed to use for device to device transmission, when at least one condition is met, in the autonomous resource selection; wherein, in a case where the UE is configured to use scheduled resource allocation and the at least one condition is met, the controller is configured to process the instructions to use autonomous resource selection temporarily, even though the UE is configured to use scheduled resource allocation, using the radio resources identified by the information for configuring the pool of radio resources, and characterized in that the controller is configured to use the radio resources identified by the information for configuring the pool of radio resources for a time period signalled by the network device in a Radio Resource Control, RRC, message. a memory storing instructions; and a controller configured to process the instructions to: support device to device communication; operate in two modes for resource allocation for the device to device communication, wherein the two modes include: scheduled resource allocation in which a network device schedules radio resources for device to device communication, wherein the UE sends a scheduling request to the network device and the network device schedules the radio resources for device to device communication; and autonomous resource selection in which the UE selects radio resources from a resource pool for device to device communication; support device to device communication; operate in two modes for resource allocation for the device to device communication, wherein the two modes include: scheduled resource allocation in which a network device schedules radio resources for device to device communication, wherein the UE sends a scheduling request to the network device and the network device schedules the radio resources for device to device communication; and autonomous resource selection in which the UE selects radio resources from a resource pool for device to device communication; scheduled resource allocation in which a network device schedules radio resources for device to device communication, wherein the UE sends a scheduling request to the network device and the network device schedules the radio resources for device to device communication; and autonomous resource selection in which the UE selects radio resources from a resource pool for device to device communication; receive, from the network device, a signalling including information for configuring a pool of radio resources, wherein the information indicates radio resources that the UE is allowed to use for device to device transmission, when at least one condition is met, in the autonomous resource selection; wherein, in a case where the UE is configured to use scheduled resource allocation and the at least one condition is met, the controller is configured to process the instructions to use autonomous resource selection temporarily, even though the UE is configured to use scheduled resource allocation, using the radio resources identified by the information for configuring the pool of radio resources, and characterized in that the controller is configured to use the radio resources identified by the information for configuring the pool of radio resources for a time period signalled by the network device in a Radio Resource Control, RRC, message.