Added some debuging code