Adding debug output to stdout