A wireless device, in a radio resource control (RRC) idle state or RRC inactive state, transmits, to a base station, a message. The message comprises first data associated with a small data transmission (SDT) procedure and an RRC request message. While the wireless device is in the RRC idle state or RRC inactive state, the wireless device receives, from the base station, an indication of an uplink resource, transmits, via the uplink resource, second data associated with the SDT procedure, and receives, from the base station and after the transmitting the second data, an RRC release message.