Fix she-bang line
Make a couple variables local