Removed and converted some print into debugger