Added method for running a single loop