Added z ordering.