Add function to load settings