Parsing internal scripts