Adding code for creating a hierachy of LODs