Added inverted pendulum controller.