Added some debugging lines and stuff