Changed console to debug, formatted