Changed the way integer values are parsed from settings.