Added code to initialise all stacks