Refactored detonator.