Added a log for distinct sequence.