A wireless device receives one or more messages comprising configuration parameters. The configuration parameters indicate: a plurality of bandwidth parts (BWPs) comprising a first BWP and a second BWP; and a timer value for a BWP inactivity timer. The BWP inactivity timer associated with the timer value starts in response to switching to the first BWP as an active BWP. A beam failure recovery procedure is initiated based on reaching a number of beam failure instance indications for the first BWP. Based on an expiry of the BWP inactivity timer during the beam failure recovery procedure: the beam failure recovery procedure for the first BWP is aborted; and the active BWP is switched from the first BWP to the second BWP.