Moved debugger into its own class
Initialize class before using it