Added debugging code: PDEBUG and /proc file creation.