Function getSettings