Implemented script compiler.