Building stability through biodiversity