Added computeLod (not finished).