Sequence counter and clearer distinction of debug functions