Changed script vars.
Removed old, unused code.