Modified script: tree quality evaluation