Valid settings function