Added debugging to advanced settings