Several small tools for PACF