Implemented script parsing