Added ability to define multiple scripts in a single file.