Added controls to the demo using r4's control framework.