I experimented with thresholds in the IDL code to optimize active region detections. Below are a couple of sample images that show what the code detected in the magnetograms and how it paired the positive and negative regions (white indicates a positive field, black indicates a negative field). These images were produced by varying the threshold values in the code. The image on the left is an example of a bad set of detections, while the image on the right shows a much better set of detections for the same date.