Added extra options for preprocess, index and error correction stages