Update: Cleaned staffdetection.hxx:detect.