Control of the ecdysteroid level plays a crucial role in density-dependent metamorphosis in the giant mealworm beetle Zophobas atratus.