Updated action loop so that it doesn't print the alert level on a different line each time