Added bbox space filter function