set_sequence added. write_file sequence.json added.