Added a console and some more debug