Adding a framework for more complicated hazard spawning.