Scripts can now call other scripts. Refactored a lot of code.