Added algorithm setting.