Config: add flag for choosing tree or linear detection.