Initial UnivariateSAR code