Initial pendulum simulation working.