Implemented a higher level script parser.