Update: main and preprocess