Added quadtile calculation