Old XGL code