Added preprocess function for selecting stop from existing