Recast configuration with stacks