Changed hard-coded settings to configuration.