Working on Octree logic