Add Script marshalling/unmarshalling