Added in controls functionality.