Using simulations and kinetic network models to reveal the dynamics and functions of riboswitches.