Committing the detection routine