Added debug message
Maybe I should really switch to C++ and create classes...