Added signal handler for settings changes