EDIT: revise parameters and pipeline.