Added tonumber to getTps() to fix the compare string and number error