Updated setBGOpacity

Added additional debug logging and used it to set the settings