Added function to search points/rectangles.