Taming the Wild Pendulum