Add ability to end template debug position