Reorganized the run object into multiple methods.