Update overlay algorithm to be awesome.