Modify run.py for pendulum stuff.