Kenmore gas dryer stops during cycle

I have an older kenmore gas dryer that runs for 10-20 minutes and then shuts off. If I wait a few minutes, it can be restarted and it runs for 10-20 minutes again. I replaced the high limit thermostat but it still happens. Any suggestion on which part is bad?