Modified files to use the stage where test set performance is maximized