Swapped out "state" with "running" to shorten the script even more