Finished windowed tracking algorithm.