UP LEH analysis scripts