Fixes bug from last commit, adds some debug code to get an idea of the different states that are currently triggering tts.