Removed unnecessary variable and return in get predictor, added trace
extraction functions