A processor configured to cause a user equipment, UE, to perform a method comprising the steps of: receiving, from a base station, configuration information related to a 2-step random access, RA, procedure between the UE and the base station in unlicensed spectrum, wherein the 2-step RA procedure includes: an uplink MsgA message that includes, within a random access occasion, RO, a MsgA preamble and a MsgA payload, and a downlink MsgB message that includes a MsgB physical downlink control channel, PDCCH, and a MsgB payload, wherein the configuration information indicates: resources allocated for the MsgA preamble, and information relating to a mapping between the resources allocated for the MsgA preamble transmissions and resources allocated for the MsgA payload, wherein the mapping specifies one resource for the MsgA payload per multiple resources for transmission of the MsgA preamble; wherein the resources allocated for the MsgA payload transmissions include a plurality of frequency multiplexed resources; determining the resource for the MsgA preamble based on resources allocated for the MsgA preamble transmissions; determining the resource for the MsgA payload in one of the plurality of frequency multiplexed resources based on the resources allocated for the MsgA preamble transmissions and the mapping; transmitting the MsgA preamble in the resource determined for the MsgA preamble; and transmitting the MsgA payload in the resource determined for the MsgA payload. receiving, from a base station, configuration information related to a 2-step random access, RA, procedure between the UE and the base station in unlicensed spectrum, wherein the 2-step RA procedure includes: an uplink MsgA message that includes, within a random access occasion, RO, a MsgA preamble and a MsgA payload, and a downlink MsgB message that includes a MsgB physical downlink control channel, PDCCH, and a MsgB payload, an uplink MsgA message that includes, within a random access occasion, RO, a MsgA preamble and a MsgA payload, and a downlink MsgB message that includes a MsgB physical downlink control channel, PDCCH, and a MsgB payload, wherein the configuration information indicates: resources allocated for the MsgA preamble, and information relating to a mapping between the resources allocated for the MsgA preamble transmissions and resources allocated for the MsgA payload, wherein the mapping specifies one resource for the MsgA payload per multiple resources for transmission of the MsgA preamble; resources allocated for the MsgA preamble, and information relating to a mapping between the resources allocated for the MsgA preamble transmissions and resources allocated for the MsgA payload, wherein the mapping specifies one resource for the MsgA payload per multiple resources for transmission of the MsgA preamble; wherein the resources allocated for the MsgA payload transmissions include a plurality of frequency multiplexed resources; determining the resource for the MsgA preamble based on resources allocated for the MsgA preamble transmissions; determining the resource for the MsgA payload in one of the plurality of frequency multiplexed resources based on the resources allocated for the MsgA preamble transmissions and the mapping; transmitting the MsgA preamble in the resource determined for the MsgA preamble; and determining the resource for the MsgA preamble based on resources allocated for the MsgA preamble transmissions; determining the resource for the MsgA payload in one of the plurality of frequency multiplexed resources based on the resources allocated for the MsgA preamble transmissions and the mapping; transmitting the MsgA preamble in the resource determined for the MsgA preamble; and