Added debugging code for settings page