Fully implement hazard logic.