Use seq_file's start, next, show amd stop