Added debug mode for camera control.