Updated settings logic.