Fixed the debug parameter - need to be sure I'm properly converting to ascii, otherwise it will fail out. Still debugging issue #2.