Added THP test and change conditions to script