Added some debugging stuff, should be removed later.