Vectorized the detector