Fixed up debugtext().
Removed useless function.