Added reset and debug