Adding configuration directory management and adjusting the resource order.