Added setting update functionality