Renamed some prec/recall functions and altered function signature.