A new species offers a clue to the boom of giant dinosaurs