I replaced both the cycling thermostat and the hi limit thermostat along with a new thermal fuse and it seems to have fixed the problem. I thought it might be one of the thermostats but they both had continuity so I decided one of them must be faulty in some way so I just replaced both of them.
I was very pleased with the prices and the quick shipping from Appliance Parts Pros. The parts were at my house in only a day and a half from when I ordered them.