Adding refresh time as parameter in Settings.