Working on Exit Routine. Code is broken, working on a fix in a test script.