Slightly Less Buggy Version of MaxIntensityFinding.m