Converting debug output to stderr