Added publishing to detector