Added ability to define multiple scripts in the same file.