Added layer ordering.