runs and goes dead, sits 1/2 hour Will restart

The dryer will run for a while and then go dead. nothing works on the panel, but there is power. after 20 to 30 minutes it will start flashing PF. at that point I can clear and restart. I have replaced the thermister which was recommended earlier. any suggestions??