Move debug and connection to settings.