Finalize AOI intersection code.