Move DEBUG setting to settings