Added spatial indexing.