Added in a UISwitch to enable debug mode.