Added reset function to debugger