Fixed ROI numbering bug.
Development of new detection algorithm.