Speeded up script parser