Preprocess code