Fixed build and removed console debugging