Corrected tsts calculation
Moved down rf-score