Added quality check for stream