This works partial. I can't get the " %" after $percent to show up ...
...and when I switch on flightmode it breaks the script and nothing is shown except "}".