Adding bounds to hazard rate model.
Improving stability of simulation code.