Automating Stacks