Fixed persistence of processing scripts and sampling