ats pft algorithm