Added getSettings function