Set detector to be only enabled by config