Renamed a method for clarity.
Refactored and tested run().