Added some mode debug