Added changes to admit a double pendulum model