TargetDetector, I think I fixed the segfault by adding in a check to make sure the main panel is found. Also changed aspect ratio for circles to something sensible