The role of betatron acceleration in complex solar bursts