First shot at implementing the old FrameFinder algorithm.