Added a little bit of debug output to the console.