Create threshold optimization step between detection and scoring

Done!