Added layer ordering