Include legends in scripts