Fixed passing on settings object.