Added a PTC class that ends after a set number of iterations.