Working on having a single stack for all modes. This code currently has an issue...