Added quality definition by LSD