Move scripts to top level.
Make variables local.