Stack optimization

Andrea Zoppi