Made the rtree variable dimensional.