Fixed detect.py I think